class C1 {
	private int i;
	private int j;

	C1() {
		System.out.printf("entering C1\n");
		i = 1;
		j = 2;
		draw();
	}

	public void draw() {
		System.out.printf("entering C1::draw\n");
		System.out.printf("i = %d\nj = %d\n", i, j);
	}
}

class C2 extends C1 {
	private int i;
	private int j;

	C2() {
		System.out.printf("entering C2\n");
		i = 3;
		j = 4;
		draw();
	}

	public void draw() {
		System.out.printf("entering C2::draw\n");
		System.out.printf("i = %d\nj = %d\n", i, j);
	}
}

public class ConstructorFunctions {
	public static void main(String[] args) {
		System.out.printf("entering main()\n");
		C2 cc = new C2();
		System.out.printf("exiting main()\n");
	}
}
